import 'dart:ui';

import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:wangziyi_app/pages/setting_page.dart';

import 'constans.dart';

  class MyToast{

     toast(String msg){
      Fluttertoast.showToast(
          msg: msg,
          toastLength: Toast.LENGTH_SHORT,
          gravity: ToastGravity.CENTER,
          timeInSecForIosWeb: 1,
          backgroundColor: Color(AppColors.APP_THEM),
          textColor: Colors.white,
          fontSize: 16.0);
    }
}